#include "examdialog.h"
#include "logindialog.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    logindialog loginD;
    int res = loginD.exec();
    if(res == QDialog::Accepted){
        // 如果登录弹窗触发了Accepted 就 进入到首页
        examdialog* examD;
        examD = new examdialog;
        // examdialog.exec();
    }else{
        // 触发了其他的关闭就进程结束
        return 0;
    }
    return a.exec();
}
